Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Tags
    3. user interface
    Log in to post

    • thom

      Single Window Mode + separate font overview
      General Questions • scripting user interface • • thom  

      4
      0
      Votes
      4
      Posts
      721
      Views

      thom

      I have this... But it is buggy. See if you scroll. If you change a glyph the factory doest work, only after scrolling/clicking on the overview.. Here I need a bit help :) from vanilla import * from defconAppKit.controls.glyphCollectionView import * from defconAppKit.windows.baseWindow import BaseWindowController from mojo.UI import SetCurrentGlyphByName class MyFont(BaseWindowController): def __init__(self, glyphs): self.w = Window((900,600), '') self.w.collectionView = GlyphCollectionView((15, 15, -15, -65), doubleClickCallback=self.double, cellRepresentationName='doodle.GlyphCell') self.w.collectionView.setCellSize((100, 100)) self.setUpBaseWindowBehavior() self.w.collectionView.preloadGlyphCellImages() self.w.collectionView.set(glyphs) self.updateTitle() self.w.open() def updateTitle(self): title = f.info.familyName +' - '+ f.info.styleName+', '+ str(CurrentGlyph()) self.w.setTitle(title) def double(self, sender): order = f.lib.get('public.glyphOrder') SetCurrentGlyphByName(order[self.w.collectionView.getSelection()[0]]) self.updateTitle() f = CurrentFont() g = CurrentGlyph() glyphs = [] for g in f.lib.get('public.glyphOrder'): glyphs.append(f[g]) MyFont(glyphs)
    • jens

      SOLVED Contextual Menu in font view?
      General Questions • user interface observers font overview • • jens  

      3
      0
      Votes
      3
      Posts
      686
      Views

      jens

      Nice, thank you!
    • A Former User

      Animation in mojo.Canvas
      General Questions • user interface animation • • A Former User  

      3
      0
      Votes
      3
      Posts
      723
      Views

      A Former User

      OMG you made my day Thanks : )))))
    • bahman

      SOLVED Glyph editor display toggles API
      General Questions • scripting user interface • • bahman  

      2
      0
      Votes
      2
      Posts
      490
      Views

      frederik

      he Bahman you can use: from mojo.UI import setGlyphViewDisplaySettings, getGlyphViewDisplaySettings settings = getGlyphViewDisplaySettings() print settings # change something, and set it back # setGlyphViewDisplaySettings(settings) good luck
    • Guest

      SOLVED Is it possible to sort the tools in Toolbar?
      General Questions • user interface preferences keyboard shortcuts • • Guest  

      6
      0
      Votes
      6
      Posts
      986
      Views

      StephenNixon

      Ahhh I completely missed that. Thanks!
    • A Former User

      Odd progress bar window behaviour
      General Questions • scripting user interface • • A Former User  

      3
      0
      Votes
      3
      Posts
      579
      Views

      A Former User

      It works! Thanks :)
    • bahman

      Current glyph window size and position
      General Questions • scripting user interface • • bahman  

      2
      0
      Votes
      2
      Posts
      421
      Views

      frederik

      He I don't fully understand why but here is a script that is changing the size and position of the current window to the previous current window from AppKit import NSApp # get all ordered windows windows = NSApp().orderedWindows() # get the size of the window (x, y), (w, h) = windows[1].frame() # set the size of the window windows[0].setFrame_display_animate_(((x, y), (w, h)), True, False) good luck!
    • rbmntjs

      Pop out Kerning and Groups
      Feature Requests • user interface kerning groups • • rbmntjs  

      3
      0
      Votes
      3
      Posts
      698
      Views

      rbmntjs

      Like a charm. Thanks a lot!
    • A Former User

      Space matrix values body size
      General Questions • user interface space center mojo • • A Former User  

      5
      0
      Votes
      5
      Posts
      819
      Views

      A Former User

      Thanks!
    • jack_jennings

      SOLVED 4 level limit to folder depth in scripting window?
      Problems & Bugs • user interface • • jack_jennings  

      2
      0
      Votes
      2
      Posts
      441
      Views

      frederik

      you can change the depth level with a 'hidden' pref: from lib.tools.defaults import setDefault setDefault("pythonFileFolderLevel", 100) good luck!
    • nina

      Component Preview Outline
      General Questions • user interface components • • nina  

      3
      0
      Votes
      3
      Posts
      547
      Views

      nina

      Sorry I didn’t reply earlier. I really like the new configuration! Will gladly wait for the implementation. The white outlines are maybe a bit too disturbing for some use cases.
    • nina

      Search Mark Color
      Feature Requests • user interface colors • • nina  

      2
      0
      Votes
      2
      Posts
      581
      Views

      frederik

      you can always use "contains" or "match" options but it would be idd a lot nicer when the colors are updated when ever a glyph.mark is added or changed...
    • jo

      Copy glyph with layers
      General Questions • user interface layers • • jo  

      2
      0
      Votes
      2
      Posts
      479
      Views

      frederik

      Hi no that is not intended :) a bug in pasting glyph objects with all layer content thanks for reporting, will be solved in the next update
    • jo

      Component transformations
      General Questions • user interface components • • jo  

      2
      0
      Votes
      2
      Posts
      443
      Views

      frederik

      oh, nice little bug, will be solved in the next update. It fails when ever you add a floating number which is not nice for transformations. thanks
    • jo

      Tabs in scripting window
      Feature Requests • scripting user interface • • jo  

      5
      0
      Votes
      5
      Posts
      686
      Views

      frederik

      that would be nice :) as it is now you can open your script browser (see button on the bottom left of the scripting window) and switch from script to script...
    • thom

      Measuring options gone
      Problems & Bugs • user interface measuring • • thom  

      3
      0
      Votes
      3
      Posts
      553
      Views

      thom

      Great!
    • joanca

      AccordionView update CurrentFont
      General Questions • user interface mojo • • joanca  

      6
      0
      Votes
      6
      Posts
      813
      Views

      joanca

      Sounds a good idea, thanks : )
    • jack_jennings

      Suppressing Installation Message
      General Questions • user interface extensions • • jack_jennings  

      2
      0
      Votes
      2
      Posts
      388
      Views

      frederik

      will make it available through the ExtensionBundle so you could install extensions with showMessages disabled. Installing a bundle will return a succes bool and an info message.
    • jack_jennings

      SOLVED Font Collection Custom Tool
      General Questions • scripting user interface observers vanilla mojo • • jack_jennings  

      8
      0
      Votes
      8
      Posts
      1176
      Views

      frederik

      He I've written a proper vanilla patch which is already in the vanilla repo. This will be in the next update of RoboFont. It adds addToolBarItem and removeToolbarItem to a vanilla window object, able to manage toolbar items properly. see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/vanillaWindows.py#L631
    • joanca

      Adding more than one item to a AccordionView description
      General Questions • scripting user interface mojo • • joanca  

      2
      0
      Votes
      2
      Posts
      456
      Views

      frederik

      he I've updated the example: http://doc.robofont.com/api/mojo/mojo-ui/ from mojo.UI import AccordionView from vanilla import * class MyInspector: def __init__(self): self.w = FloatingWindow((200, 600)) self.firstItem = TextEditor((10, 10, -10, -10)) self.secondItem = List((0, 0, -0, -0), ["a", "b", "c"]) self.thirdItem = Tabs((10, 10, -10, -10), ["1", "2", "3"]) self.fourthItem = Group((0, 0, -0, -0)) self.fourthItem.checkBox = CheckBox((10, 10, 100, 22), "CheckBox") self.fourthItem.editText = EditText((10, 40, -10, 22)) descriptions = [ dict(label="first item", view=self.firstItem, size=200, collapsed=False, canResize=False), dict(label="second item", view=self.secondItem, minSize=100, size=140, collapsed=True, canResize=True), dict(label="third item", view=self.thirdItem, minSize=100, size=140, collapsed=True, canResize=False), dict(label="fourth item", view=self.fourthItem, size=140, collapsed=False, canResize=False) ] self.w.accordionView = AccordionView((0, 0, -0, -0), descriptions) self.w.open() MyInspector() good luck